package cg.modelo;

public abstract class MahoCard extends Card {

	public MahoCard(String id) {
		super(id);
	}
	
	@Override
	public boolean set(Board board) {
		if(!board.getMagicTrapZone().full()) {
			board.getMagicTrapZone().add(this);
			return true;
	}
		return false;
	}
	
	public boolean sendToGraveyard(Board board) {
		if(board.getMagicTrapZone().hasCard(this)) {
			board.getMagicTrapZone().removeCard(this);
			board.getGraveyard().add(this);
			return true;
		}
		return false;
	}

	public boolean removeFromPlay(Board board) {
		if(board.getMagicTrapZone().hasCard(this)) {
			board.getMagicTrapZone().removeCard(this);
			board.getOutOfPlay().add(this);
			return true;
		}
		return false;
	}
	
}
